package com.ksyun.cloudhostalarmprocessing.service.Impl;

import com.ksyun.cloudhostalarmprocessing.entity.Rules;
import com.ksyun.cloudhostalarmprocessing.mapper.RulesMapper;
import com.ksyun.cloudhostalarmprocessing.service.IRulesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 李厚航
 * @since 2024-05-07
 */
@Service
public class RulesServiceImpl implements IRulesService {
    @Autowired
    RulesMapper rulesMapper;

    @Override
    public Rules selectOne(Rules rules) {
        return rulesMapper.selectOne(rules);
    }

    @Override
    public List<Rules> selectBatch(Rules rules) {
        return rulesMapper.selectBatch(rules);
    }

    @Override
    public Integer createBatch(List<Rules> rules) {
        return rulesMapper.createBatch(rules);
    }

    @Override
    public Integer createOne(Rules rules) {
        return rulesMapper.createOne(rules);
    }

    @Override
    public Integer deleteAll() {
        return rulesMapper.deleteAll();
    }
}
